package demo2;

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "旺财";
        dog.age = 2;
        dog.color = "黄色";
        dog.eat();

        Cat cat = new Cat();
        cat.name = "mimi";
        cat.age = 1;
        cat.eat();
    }
}
